update e2c 7

Documentation Version for Comments and Changes

You are invited to make any changes...add any comments.

Changes will `eventually` be merged into the offical documentation.

Leave any commnents here...

...

... back to index page OE documentation



When creating an executable file to deliver to your users on Windows, its best to link in a resource file that at minimum sets your application icon but better if it sets product and version information.

When the resource compiler is launched by euc, a single macro is defined named SRCDIR. This can be used in your resource files to reference your application source path for including other resource files, icon files, etc...

A simple resource file to attach an icon to your executable file is as simple as:

myapp ICON SRCDIR\myapp.ico 

Remember that SRCDIR will be expanded to your application source path.

A more complex resource file containing an icon and product/version information may look like:

1 VERSIONINFO 
 
FILEVERSION 4,0,0,9 
PRODUCTVERSION 4,0,0,9 
 
FILEFLAGSMASK 0x3fL 
FILEFLAGS 0x0L 
FILEOS 0x4L 
FILETYPE 0x1L 
FILESUBTYPE 0x0L 
 
BEGIN 
  BLOCK "StringFileInfo" 
    BEGIN 
      BLOCK "040904B0" 
        BEGIN 
          VALUE "Comments",         "http://myapplication.com\0" 
          VALUE "CompanyName",      "John Doe Computing\0" 
          VALUE "FileDescription",  "Cool App\0 
          VALUE "FileVersion",      "4.0.0\0" 
          VALUE "InternalName",     "coolapp.exe\0" 
          VALUE "LegalCopyright",   "Copyright (c) 2022 by John Doe Computing\0" 
          VALUE "LegalTrademarks1", "Trademark Pending\0" 
          VALUE "LegalTrademarks2", "\0" 
          VALUE "OriginalFilename", "coolapp.exe\0" 
          VALUE "ProductName",      "Cool Application\0" 
          VALUE "ProductVersion",   "4.0.0\0" 
        END 
    END 
  BLOCK "VarFileInfo" 
    BEGIN 
      VALUE "Translation", 0x409, 1200 
    END 
END 
 
coolapp ICON SRCDIR\coolapp.ico 

One other item you may wish to include is a manifest file which lets Windows know that controls should use the new theming engines available in >= Windows XP. Simply append:

1 24 "coolapp.manifest" 

to the end of your resource file. The coolapp.manifest file is:

{{{ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu